package com.example.demo.djangoAPI;

import com.example.demo.hystrix.HystrixServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Administrator
 * @Name: DjangoAPI
 * @Description:
 * @date 2021/3/29
 * @Copyright
 */
@FeignClient(name = "Django",fallbackFactory = HystrixServiceFallback.class)
public interface DjangoAPI {

    @RequestMapping(value = "micro/test",method = RequestMethod.GET)
    public String getDjangoTest(@RequestParam String id);
}
